JavaScript

A5.chartDefinition Fill Object

Description

The definition of a chart fill.

Properties

colorstringarrayfunction(data,temp)

The color of the fill. A value of "default" (the default), will use the default color for the element from the palette. If a gradient is being used, then an array of two colors can be passed in to explicitly set the start and end color. If a single color is passed in then the gradient colors will automatically be created with that color as the midpoint. A value of "none" or "transparent" will result in the fill not being drawn. A function can be used to dynamically calculate the color (see A5.chart Render Data Object).

gradientstringfunction(data,temp)

The name of the gradient to use. A value of "none" (the default), will not use a gradient. See A5.chart.u.style.defaults.gradients. A function can be used to dynamically calculate the gradient (see A5.chart Render Data Object).

opacitynumberfunction(data,temp)

The opacity of the fill from 0 (transparent) to 1 (solid). A function can be used to dynamically calculate the opacity (see A5.chart Render Data Object).